import React, { Component } from 'react'
import Fasong from "../util/events"
class Bottom extends Component {
    state = {
        selIndex:0
    }
    componentDidMount(){
        Fasong.addListener("zhao",this.jiehsou)
    }
    jiehsou = (data)=>{
        console.log(data)
        this.setState({
            selIndex:data
        })
    }
    render() {
        let {send} = this.props 
        let {selIndex} = this.state
        console.log(send)
        return (
            <div>
                {
                    send&&send.length?<div>{send[selIndex].con}</div>:""
                }
            </div>
        )
    }
}

export default Bottom
